<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script>
export default {
  // 使用watch 监听$router的变化,
  watch: {
    $route: function() {
      document.body.scrollTop = 0;
      document.documentElement.scrollTop = 0;
    },
  },
};
</script>

<style>
* {
  margin: 0px;
  padding: 0px;
}
#app {
  overflow-x: hidden;
  overflow-y: hidden;
}
a {
  cursor: default !important;
}
</style>
